
/**
 * 会员中心实体类
 * */
class MemberEntity {
	int code;
	MemberData data;
	String message;

	MemberEntity({this.code, this.data, this.message});

	MemberEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new MemberData.fromJson(json['data']) : null;
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['message'] = this.message;
		return data;
	}
}

class MemberData {
	String qQ;
	List<MemberDataViplist> vipList;
	String companyBankName;
	String pic;
	String type;
	String deadLine;
	String wxName;
	String companyBankNum;
	String name;
	String vipCardList;
	String tel;
	String wxQcode;
	String username;

	MemberData({this.qQ, this.vipList, this.companyBankName, this.pic, this.type, this.deadLine, this.wxName, this.companyBankNum, this.name, this.vipCardList, this.tel, this.wxQcode, this.username});

	MemberData.fromJson(Map<String, dynamic> json) {
		qQ = json['QQ'];
		if (json['vipList'] != null) {
			vipList = new List<MemberDataViplist>();(json['vipList'] as List).forEach((v) { vipList.add(new MemberDataViplist.fromJson(v)); });
		}
		companyBankName = json['company_bank_name'];
		pic = json['pic'];
		type = json['type'];
		deadLine = json['dead_line'];
		wxName = json['wx_name'];
		companyBankNum = json['company_bank_num'];
		name = json['name'];
		vipCardList = json['vipCardList'];
		tel = json['tel'];
		wxQcode = json['wx_qcode'];
		username = json['username'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['QQ'] = this.qQ;
		if (this.vipList != null) {
      data['vipList'] =  this.vipList.map((v) => v.toJson()).toList();
    }
		data['company_bank_name'] = this.companyBankName;
		data['pic'] = this.pic;
		data['type'] = this.type;
		data['dead_line'] = this.deadLine;
		data['wx_name'] = this.wxName;
		data['company_bank_num'] = this.companyBankNum;
		data['name'] = this.name;
		data['vipCardList'] = this.vipCardList;
		data['tel'] = this.tel;
		data['wx_qcode'] = this.wxQcode;
		data['username'] = this.username;
		return data;
	}
}

class MemberDataViplist {
	String effectone;
	String id;
	String label;
	String effecttree;
	String type;
	String effecttwo;
	String status;
	List<MemberDataViplistChild> child;

	MemberDataViplist({this.effectone, this.id, this.label, this.effecttree, this.type, this.effecttwo, this.status, this.child});

	MemberDataViplist.fromJson(Map<String, dynamic> json) {
		effectone = json['effectone'];
		id = json['id'];
		label = json['label'];
		effecttree = json['effecttree'];
		type = json['type'];
		effecttwo = json['effecttwo'];
		status = json['status'];
		if (json['child'] != null) {
			child = new List<MemberDataViplistChild>();(json['child'] as List).forEach((v) { child.add(new MemberDataViplistChild.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['effectone'] = this.effectone;
		data['id'] = this.id;
		data['label'] = this.label;
		data['effecttree'] = this.effecttree;
		data['type'] = this.type;
		data['effecttwo'] = this.effecttwo;
		data['status'] = this.status;
		if (this.child != null) {
      data['child'] =  this.child.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class MemberDataViplistChild {
	String icon;
	String label;
	String desc;

	MemberDataViplistChild({this.icon, this.label, this.desc});

	MemberDataViplistChild.fromJson(Map<String, dynamic> json) {
		icon = json['icon'];
		label = json['label'];
		desc = json['desc'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['icon'] = this.icon;
		data['label'] = this.label;
		data['desc'] = this.desc;
		return data;
	}
}
